﻿<UserControl x:Class="Mutzl.Samples.VideoApp.Flyouts.SettingsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controls="using:Callisto.Controls"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             DataContext="{Binding Settings,
                                   Source={StaticResource YouTubeLocator}}"
             d:DesignHeight="800"
             d:DesignWidth="346"
             mc:Ignorable="d">

    <UserControl.Resources>
        <ResourceDictionary Source="../Common/ToggleSwitchStyle.xaml" />
    </UserControl.Resources>

    <Grid>
        <StackPanel>
            <ToggleSwitch Header="Tweets anzeigen" OnContent="Ein" OffContent="Aus"
                          IsOn="{Binding ShowTweets,
                                         Mode=TwoWay}"
                          Style="{StaticResource ToggleSwitchStyle}" />

            <TextBlock Margin="7 10 7 0"
                       FontFamily="{StaticResource ContentControlThemeFontFamily}"
                       FontSize="{StaticResource ControlContentThemeFontSize}"
                       Foreground="{StaticResource ToggleButtonForegroundThemeBrush}"
                       Text="Intervall für Update der Tweets" />
            <controls:NumericUpDown Margin="7"
                                    Maximum="30"
                                    Minimum="0"
                                    Value="{Binding TweetsUpdateIntervallInMinutes,
                                                    Mode=TwoWay}" />

        </StackPanel>


    </Grid>
</UserControl>
